<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1 a="1111" b="222" c="3333" data-x="4444444" data-y="55555555" id="demo" >学习js---------dataset属性</h1>


    <script>

        document.getElementById("demo").onclick = function(e){
            console.dir(e.target.dataset);
        }




    </script>
</body>
</html>